#ifndef CNPIPE_GLOBAL_H
#define CNPIPE_GLOBAL_H

#include <QObject>

/** CNPIPE的全局变量 */
class CNPIPE_global : public QObject {
public:
    CNPIPE_global();
    virtual QObject *getJSONHandler() {
        return this->JSONHandler;
    }
    virtual QObject *getPipeLine() {
        return this->pipeLine;
    }
    virtual QObject *getPipeRangeDefiner() {
        return this->pipeRangeDefiner;
    }
    virtual QObject *getRealPipe() {
        return this->realPipe;
    }
    virtual QObject *getLoadDisplacement() {
        return this->loadDisplacement;
    }
    virtual QObject *getElementaryStress() {
        return this->elementaryStress;
    }
    virtual QObject *getFrequencyDisplacement() {
        return this->frequencyDisplacement;
    }
    virtual QObject *getSpectrum() {
        return this->spectrum;
    }
    virtual QObject *getAction() {
        return this->action;
    }
    virtual QObject *getActionsOfDisplayingShapes() {
        return this->actionsOfDisplayingShapes;
    }
    //设置动画用总场景
    virtual void setScene(QObject *s) {
        scene = s;
    }
    //获取动画用总场景
    virtual QObject *getScene() {
        return scene;
    }
private:
    QObject *JSONHandler, *pipeRangeDefiner, *pipeLine, *realPipe,
    *loadDisplacement, *elementaryStress,
    *frequencyDisplacement, *spectrum, *action,
    *actionsOfDisplayingShapes;
    QObject *scene; //场景类对象
};

#endif // CNPIPE_GLOBAL_H
